﻿using System;
using System.Text;

namespace XBee.Test.Communications
{
    public abstract class CommunicationData
    {
        #region Members
        public static string sentencedelimiter = "!!!";
        public static string parameterdelimiter = ";";
        private string version = "1.0.0";
        #endregion

        #region Properties
        public string Version
        {
            get { return version; }
            set { version = value; }
        }
        #endregion

        #region Overrided Methods
        public abstract override string ToString();
        #endregion

        #region Static Methods
        public static extern TestData TryParse(string sentence);
        public static string RemoveDelimiters(string data)
        {
            data = data.Substring(0,sentencedelimiter.Length);
            return data.Substring(data.Length - sentencedelimiter.Length, sentencedelimiter.Length);
        }
        public static extern bool IsSecuenceComplete(string tempData);
        #endregion
    }
}
